//
//  Me2DayUIViewController.m
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 22..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Me2DayUIViewController.h"
#import "Me2DayUIAlertView.h"


@implementation Me2DayUIViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
}


- (void)dealloc
{
    [super dealloc];
}




- (me2dayAppDelegate*)appDelegate
{
	return (me2dayAppDelegate*)[[UIApplication sharedApplication] delegate];
}

- (void)showAlertView:(NSString*)message andTitle:(NSString*)title
{
	Me2DayUIAlertView* alertView = [[Me2DayUIAlertView alloc]
								  initAlertWithTitle:title
								  message:message
								  target:nil
								  action:nil];
	[alertView show];
	[alertView autorelease];
}

- (void)showAlertView:(NSString*)message
{
	[self showAlertView:message andTitle:nil];
}



- (BOOL)navigationBarUserInteractionEnabled
{
	return self.navigationController.navigationBar.userInteractionEnabled;
}

- (void)setNavigationBarUserInteractionEnabled:(BOOL)enabled
{
	self.navigationController.navigationBar.userInteractionEnabled = enabled;
	if (enabled)
	{
		self.navigationController.navigationBar.alpha = 1.0;
	}
	else
	{
		self.navigationController.navigationBar.alpha = 0.8;
	}
}



@end
